<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>后台用户管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel='stylesheet' type='text/css' href='__PUBLIC__/css/admin-style.css' />
<script language="JavaScript" type="text/javascript" charset="utf-8" src="__PUBLIC__/js/jquery.js"></script>
<script language="JavaScript" type="text/javascript" charset="utf-8" src="__PUBLIC__/js/admin.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/editor/kindeditor.js"></script>
<script language="javascript">
$(document).ready(function(){
	$("#myform").submit(function(){
		if($ff84.form.empty('myform','news_name') == false){
			return false;
		}
		if($("#news_cid").val()==0){
			alert('请选择分类');
			return false;
		}
	});
	$("#tabs>a").click(function(){
		var no = $(this).attr('id');
		var n = $("#tabs>a").length;
		showtab('tabs',no,n);
		$("#tabs>a").removeClass("on");
		$(this).addClass("on");
		return false;
	});
});
</script>
</head>
<body class="body">
<!--图片预览框-->
<div id="showpic" class="showpic" style="display:none;"><img name="showpic_img" id="showpic_img" width="120" height="160"></div>
<include file="./Public/system/plus_tags.html" />
<gt name="news_id" value="0">
<form name="update" action="?s=Admin-News-Update" method="post" name="myform" id="myform">
<input type="hidden" name="news_id" value="{$news_id}">
<else />
<form name="add" action="?s=Admin-Art-Insert" method="post" name="myform" id="myform">
</gt>
<div class="title">
	<div class="tabs" id="tabs"><a href="javascript:void(0)" class="on" id="1">{$news_tplname}文章</a><a href="javascript:void(0)" id="2">其它设置</a></div>
    <div class="right"><a href="?s=Admin-Art-Show">返回资讯列表</a></div>
</div>
<div class="form">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="tabs1">
  <tr>
    <td class="tl">文章名称：</td>
    <td class="tr"><input type="text" name="art[title]" id="news_name" value="{$art[title]}" maxlength="255" error="* 名称不能为空" class="w400">
    	<span>*</span>
    	<lable> 
    		<select name="art[typeid]" id="typeid" style="width:108px">
    			<option value=0>选择分类</option>
    		<volist name="typearr" id="val">
    		<option value="{$val[id]}" <eq name="val[id]" value="$art[typeid]">selected</eq>>
    		├	{$val[name]}
    		</option>
    		</volist>
    		</select> 
    	</lable>
    </td>
  </tr>
  <tr>
    <td class="tl">关键字：</td>
    <td class="tr"><input type="text" name="art[keyword]" value="{$art[keyword]}" /></td>
  </tr>
  <tr>
    <td class="tl">文章图片：</td>
    <td class="tr"><label style="float:left; margin-top:4px; margin-right:5px"><input type="text" name="art[logo]" id="news_pic" maxlength="255" value="{$art[logo]}" class="w400" onMouseOver="if(this.value)showpic(event, this.value,'{&upload_path}/');" onMouseOut="hiddenpic();"></label><iframe src="?s=Admin-Upload-Show-sid-news-fileback-news_pic" scrolling="no" topmargin="0" width="290" height="28" marginwidth="0" marginheight="0" frameborder="0" align="left" style="margin-top:4px; float:left"></iframe></span></td>
  </tr>
  <tr>
    <td class="tl">文章简介：</td>
    <td class="tr padding-5050"><textarea name="art[description]" id="news_remark" style="width:705px;height:50px;color:#666666" title="如果不填写简介则自动截取内容前100字">{$art[description]}</textarea></td>
  </tr>  
  <tr>
    <td class="tl">文章内容：</td>
    <td class="tr padding-5050"><textarea name="art[content]" id="content" style="width:99%;height:300px;">{$art[content]}</textarea></td>
  </tr>
  <tr>
    <td class="tl">新闻状态：</td>
    <td class="tr"><input type="radio" name="art[status]" checked="checked" value="1" id="openart" /><label for="openart">显示</label>
    	<input type="radio" name="art[status]" checked="<eq name='art[status]' value='0'>checked</eq>" value="0" id="closeart" /><label for="closeart">不显示</label>
    </td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="table" id="tabs2" style="display:none">
  <tr>
  	<td class="tl">SEO Title：</td>
  	<td class="tr"><input type="text" name="art[seotitle]" value="{$art[seotitle]}" style="width:100px;" /></td>
  </tr>
  <tr>
    <td class="tl">SEO Keyword：</td>
    <td class="tr"><input name="art[seokeyword]" value="{$art[seokeyword]}"></td>
  </tr>
  <tr>
    <td class="tl">SEO Description：</td>
    <td class="tr"><input name="art[seodescription]" value="{$art[seodescription]}"></td>
  </tr>
  <tr>
    <td class="tl">作者：</td>
    <td class="tr"><input type="text" name="art[author]" value="{$art[author]}" /></td>
  </tr>
</table>
<ul class="footer">
	<input type="hidden" name="artid" value="{$artid}" />
	<input type="submit" name="submit" value="提交"> <input type="reset" name="reset" value="重置">
</ul>
</div>
</form>
<include file="./Public/system/plus_kedit.html" />
<include file="./Public/system/footer.html" />
</body>
</html>